From 36e58f28900ccce1fafbb5031f2c3c783e4372e6 Mon Sep 17 00:00:00 2001
From: Daniel Kolesa <daniel@octaforge.org>
Date: Sun, 27 Feb 2022 05:17:03 +0100
Subject: [PATCH] use -mhard-float for altivec code in module

otherwise clang inline asm does not accept =v

reference: https://reviews.llvm.org/D59310
---
 module/zfs/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/zfs/Makefile.in b/module/zfs/Makefile.in
index 653ea0d..b9fa7d2 100644
--- a/module/zfs/Makefile.in
+++ b/module/zfs/Makefile.in
@@ -151,7 +151,7 @@ $(MODULE)-$(CONFIG_PPC) += vdev_raidz_math_powerpc_altivec.o
 $(MODULE)-$(CONFIG_PPC64) += vdev_raidz_math_powerpc_altivec.o
 
 ifeq ($(CONFIG_ALTIVEC),y)
-$(obj)/vdev_raidz_math_powerpc_altivec.o: c_flags += -maltivec
+$(obj)/vdev_raidz_math_powerpc_altivec.o: c_flags += -mhard-float -maltivec
 endif
 
 include $(mfdir)/../os/linux/zfs/Makefile
-- 
2.35.1

